﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Bot.Application.Dto;
using Bot.Application.Services;
using Microsoft.AspNetCore.Mvc;

namespace Bot.WebAPI.Controllers
{
    [Route("api/v3/agentAssist/languages")]
    [ApiController]
    public class AgentAssistLanguageController : ControllerBase
    {

        private readonly ILanguageAppService _app;
        public AgentAssistLanguageController(ILanguageAppService app)
        {
            this._app = app;
        }

        [HttpGet]
        public ActionResult<IEnumerable<LanguageDto>> GetList()
        {
            IEnumerable<LanguageDto> list = _app.GetList("AgentAssist");
            return Ok(list);
        }
    }
}
